<template>
  <div>
    <div class="title">优惠券核销</div>
    <div class="search-box">
      <div class="label">消费券码：</div>
      <el-input class="input" placeholder="请输入消费券码"></el-input>
      <el-button type="primary">搜索</el-button>
      <div class="record" @click="toRecord">核销记录</div>
    </div>
    <!-- 有优惠券 -->
    <div>
      <div class="box">
        <div class="box-title">优惠券信息：</div>
        <div class="item">
          <label>名称：</label>
          <span>按摩诊疗优惠券</span>
          <span class="state">未使用</span>
        </div>
        <div class="item">
          <label>有效期：</label>
          <span>2021/01/03-2021/03/01</span>
        </div>
        <div class="item">
          <label>价格：</label>
          <span>100元</span>
        </div>
        <div class="item">
          <label>使用说明：</label>
          <span>按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券</span>
        </div>
        <div class="item">
          <label>购买须知：</label>
          <span>按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券按摩诊疗优惠券</span>
        </div>

      </div>
      <div class="box">
        <div class="box-title">领取人信息：</div>
        <div class="item-box">
          <div class="item">
            <label>用户名称：</label>
            <span>萌萌哒~</span>

          </div>
          <div class="item">
            <label>性别：</label>
            <span>女</span>
          </div>
          <div class="item">
            <label>手机号：</label>
            <span>18500897878</span>
          </div>
        </div>
        <div class="item-box">
          <div class="item">
            <label>领取时间：</label>
            <span>2021/03/22 9:00</span>
          </div>
          <el-button type="primary">确认核销</el-button>
        </div>


      </div>
    </div>
    <!-- 无优惠券 -->
    <!-- <div class="none">未检测到该优惠券信息</div>
    <div> -->

    </div>
  </div>
</template>
<script>
  export default{
    data(){
      return{

      }
    },
    methods:{
      toRecord(){
        this.$router.push("/home/CancellateRecord")
      }
    }
  }
</script>
<style lang="scss" scoped>
  .search-box {
    margin-top: 16px;
    display: flex;
    align-items: center;

  }

  .label {
    font-size: 28px;
  }

  .input {
    width: 516px;
    margin-right: 32px;

  }

  .el-button {
    margin-right: 32px;
  }

  .record {
    font-size: 18px;
    cursor: pointer;
  }

  .box {
    margin-top: 110px;
  }

  .box-title {
    padding-bottom: 24px;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #ccc;


  }

  .item-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .item {
    display: flex;
    align-items: center;
    margin-top: 30px;

    span {
      font-size: 13px;
      color: #363636;
    }

    .state {
      margin-left: 32px;
      font-size: 16px;
      color: #ff0000;
      font-weight: 700;
    }
  }

  label {
    display: block;
    width: 100px;
    font-size: 17px;
    color: #1e1e1e;
    text-align: right;
  }
  .none{
    margin-top: 100px;
    width: 500px;
    height: 200px;
    text-align: center;
    line-height: 200px;

  }
</style>